package com.mtf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mtf.common.enums.IdempotentEnum;
import com.mtf.common.vo.Result;
import com.mtf.entity.MtfOrder;

/**
 * @Description: mtf_order
 * @Author: jeecg-boot
 * @Date:   2023-11-02
 * @Version: V1.0
 */
public interface IMtfOrderService extends IService<MtfOrder> {

    void createOrder(MtfOrder mtfOrder);

    /**
     * @Description:创建订单（执行本地事务）
     * @param mtfOrder
     * @return void
     */
    void insertMtfOrder(MtfOrder mtfOrder);

    /**
     * @Description: 创建订单
     * @param mtfOrder
     * @return void
     */
    Result<?> saveOrder(MtfOrder mtfOrder,IdempotentEnum idempotentEnum);

    /**
     * @Description: 订单详情接口
     * @param id
     * @return com.mtf.entity.MtfOrder
     */
    MtfOrder getInfo(String id);

    /**
     * @Description: 订单详情接口
     * @param id
     * @return com.mtf.entity.MtfOrder
     */
    MtfOrder getInfos(String id);
}
